package com.xyoto.community.entity.main;

import com.xyoto.community.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author coderFu
 * @create 2021/11/15
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("广场模块配置类")
public class SquareModuleConfig extends Base {

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("模块名称")
    private String moduleName;

    @ApiModelProperty("模块图片")
    private String moduleImg;

    @ApiModelProperty("模块跳转页面链接")
    private String link;

    @ApiModelProperty("展示顺序")
    private Integer orders;

    @ApiModelProperty("模块当前状态 1、正常 2、不显示 3、点击不跳转，提示信息")
    private Integer status;

    public void setStatus(Integer status) {
        this.status = status == null ? 1 : status;
    }

    @ApiModelProperty("提示信息类型")
    private String message;

}
